package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 维修工单记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("repair")
@Schema(description = "维修工单记录")
public class Repair implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    /** 工单编号 */
    @TableField("com_id")
    @Schema(description = "工单编号")
    private String repairCode;

    /** 报修时间 */
    @TableField("com_date")
    @Schema(description = "报修时间")
    private LocalDateTime reportTime;

    /** 完成时间 */
    @TableField("handle_date")
    @Schema(description = "完成时间")
    private LocalDateTime finishTime;

    /** 报修业主ID */
    @TableField("owner_id")
    @Schema(description = "报修业主ID")
    private Integer ownerId;

    /** 状态 */
    @TableField("status")
    @Schema(description = "状态：0-待处理，1-处理中，2-已完成等")
    private Integer status;

    /** 处理人ID */
    @TableField("clr")
    @Schema(description = "处理人ID")
    private Integer handlerId;

    /** 描述或处理结果 */
    @TableField("remarks")
    @Schema(description = "描述或处理结果")
    private String remarks;
}
